package com.chinacoal.microservice.api.model.resource;

import java.util.HashMap;
import java.util.Map;

public class RecordData {
	
	protected Map<String,Map<String,String>> titles;
	protected Map<String,String> data;
	
	public RecordData add(String id,String name,String value){
		
		if(this.titles == null){
			this.titles = new HashMap<String,Map<String,String>>();
		}
		if(this.data == null){
			this.data = new HashMap<String,String>();
		}
		Map<String,String> map = new HashMap<String,String>();
		map.put("name", name);
		titles.put(id, map);
		data.put(id, value);
		return this;
	}

	public Map<String, Map<String,String>> getTitles() {
		return titles;
	}

	public Map<String, String> getData() {
		return data;
	}
	
	

}
